package com.ms.game.lobby.message;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

/**
 * 回覆大廳遊戲資料
 * @author TW15012
 *
 */
public class SLobbyHallListResponse  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2901538216071164067L;
	
	private ArrayList<SHallTypeData> dataList;
	
	private HashMap<String, HashMap<String, GameActivitySettings>> gameActivitySettings = new HashMap<String, HashMap<String,GameActivitySettings>>();
	
	
	/**
	 * 錯誤碼
	 */
	private int errorCode;
	
	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public ArrayList<SHallTypeData> getDataList() {
		return dataList;
	}

	public void setDataList(ArrayList<SHallTypeData> dataList) {
		this.dataList = dataList;
	}
	
	
	public void addData(SHallTypeData data)
	{
		if(dataList==null)
		{
			dataList = new ArrayList<SHallTypeData>();
		}
		
		dataList.add(data);
	}

	public HashMap<String, HashMap<String, GameActivitySettings>> getGameActivitySettings() {
		return gameActivitySettings;
	}

	public void setGameActivitySettings(HashMap<String, HashMap<String, GameActivitySettings>> gameActivitySettings) {
		this.gameActivitySettings = gameActivitySettings;
	}
}
